<template>
	<view>
		<text>{{title}}我是test组件</text>
		<button type="primary" @click="test()">event</button>
	</view>
</template>

<script>
	export default {
		props: {
			title: String,
			default: ''
		},
		data() {
			return {
				
			};
		},
		methods: {
			
			test() {
				this.$emit("testShowName",{name: "lisi"})
				//uni.$emit("testEmit",{name: "zhangsan"})
			}
		}
	}
</script>

<style lang="scss">

</style>
